//Page Object
const getClassNames = (name: string) => ({
  enter: `${name}-enter`,
  'enter-to': `${name}-enter-to`,
  leave: `${name}-leave`,
  'leave-to': `${name}-leave-to`,
});
Page({
  data: {
    num:0,
    show:false,
  },
  onCreate: function () {
    console.log('onCreate'),
    this.setData({
      num:this.data.num+1
    },()=>{
      console.log('onCreate setData')
    })
  },
  
  onLoad: function(options){
    // console.log('onload:',this.data.num)
  },
  onReady: function(){
    // console.log('onReady num:',this.data.num)
  },
  showOverlay(){
    this.setData({
      show:true
    })
  },
  hideOverlay(){
    this.setData({
      show:false
    })
  },
  clickOverlay(){
    console.log('点击遮罩层')
  },
  tapOverlay(){
    console.log(' tapOverlay 点击遮罩层')
  },
  onTransitionEnd(){
    console.log('动画结束')
  }
});